package com.web.crawler;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public class SearchService {
    public static List<Map<String, Object>> search(String query, String language) throws IOException {
        String indexName = "news_" + language;
        return ElasticSearchUtil.search(indexName, "content", query);
    }
}